package com.hrbxlh.virtualization.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author cheer
 */
public class ClusterCreateParam {

    @NotBlank(message = "集群名称不能为空")
    @Size(max = 20, message = "集群名称不能超过20个字符")
    private String name;

    @NotNull(message = "集群主节点没有选择镜像")
    private Long masterImageId;

    @NotNull(message = "集群第一个从节点没有选择镜像")
    private Long firstSlaveImageId;

    @NotNull(message = "集群第二个从节点没有选择镜像")
    private Long secondSlaveImageId;

    private String stuorteaId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getMasterImageId() {
        return masterImageId;
    }

    public void setMasterImageId(Long masterImageId) {
        this.masterImageId = masterImageId;
    }

    public Long getFirstSlaveImageId() {
        return firstSlaveImageId;
    }

    public void setFirstSlaveImageId(Long firstSlaveImageId) {
        this.firstSlaveImageId = firstSlaveImageId;
    }

    public Long getSecondSlaveImageId() {
        return secondSlaveImageId;
    }

    public void setSecondSlaveImageId(Long secondSlaveImageId) {
        this.secondSlaveImageId = secondSlaveImageId;
    }
}
